#include"Heap.h"
int main()
{
	int a[] = { 2,3,4,5,6,1,3,8,9,4,3,20 };
	HP hp;
	HeapInit(&hp);
	for (size_t i = 0; i < sizeof(a)/sizeof(int); i++)
	{
		HeapPush(&hp, a[i]);
	}
	Print(&hp);
	while (!HeapEmpty(&hp))
	{
		printf("%d ", HeapTop(&hp));
		HeapPop(&hp);
	}
	HeapDestroy(&hp);
	return 0;
	
}